package zust.javaee.entity;

import com.fasterxml.jackson.annotation.JsonSubTypes;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by liy on 2016/12/18.
 */

@Entity
@Table(name = "trequisition_form")
public class TrequisitionForm {

    private Integer id;
    private Tcorporation tcorporation;
    private Tplayer tplayer;
    private String briefIntroduction;  //自我简介
    private String strength;  //强项
    private String prize;  //获奖经历
    private Date requisitionTime;  //申请时间
    private Date confirmTime;  //处理时间
    private String reason;
    private Short status;

    public TrequisitionForm() {
    }

    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "corporation_id")
    public Tcorporation getTcorporation() {
        return tcorporation;
    }

    public void setTcorporation(Tcorporation tcorporation) {
        this.tcorporation = tcorporation;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "player_id")
    public Tplayer getTplayer() {
        return tplayer;
    }

    public void setTplayer(Tplayer tplayer) {
        this.tplayer = tplayer;
    }

    @Column(name = "brief_introduction")
    public String getBriefIntroduction() {
        return briefIntroduction;
    }

    public void setBriefIntroduction(String briefIntroduction) {
        this.briefIntroduction = briefIntroduction;
    }

    @Column(name = "strength")
    public String getStrength() {
        return strength;
    }

    public void setStrength(String strength) {
        this.strength = strength;
    }

    @Column(name = "prize")
    public String getPrize() {
        return prize;
    }

    public void setPrize(String prize) {
        this.prize = prize;
    }

    @Column(name = "requisition_time")
    public Date getRequisitionTime() {
        return requisitionTime;
    }

    public void setRequisitionTime(Date requisitionTime) {
        this.requisitionTime = requisitionTime;
    }

    @Column(name = "confirm_time")
    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    @Column(name = "reason")
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Column(name = "status")
    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }
}
